home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20000217-20000824
/
000407_news@columbia.edu _Fri Jul 14 01:10:35 2000.msg
< prev
next >
Wrap
Internet Message Format
|
2000-08-23
|
4KB
Return-Path: <news@columbia.edu>
Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
by uhaligani.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id BAA02828
for <kermit.misc@cpunix.cc.columbia.edu>; Fri, 14 Jul 2000 01:10:35 -0400 (EDT)
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id BAA03317
for <kermit.misc@watsun.cc.columbia.edu>; Fri, 14 Jul 2000 01:10:35 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id BAA09349
for kermit.misc@watsun.cc.columbia.edu; Fri, 14 Jul 2000 01:10:47 -0400 (EDT)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: jaltman@columbia.edu (Jeffrey Altman)
Subject: Re: Suggestion for Kermit script language
Date: 14 Jul 2000 05:10:42 GMT
Organization: Columbia University
Message-ID: <8km7ci$941$1@newsmaster.cc.columbia.edu>
To: kermit.misc@columbia.edu
In article <396E9035.C028E5FE@value.net>,
Mark Sapiro <msapiro@value.net> wrote:
: Often in a macro or script one wishes to save the current settings of
: certain parameters before changing them so that they can be restored
: later. When the setting is reflected in a variable, this can be done,
: but it is a bit awkward. Some settings are not reflected in variables,
: and saving a prior setting can't be done.
I think that Frank and I would love to do this just like we would
love to have a SAVE command for every feature set. But it is a lot
of work. There are simply thousands of commands in Kermit.
: Consider the following macro which I actually use to connect to a
: library cataloging and circulation system in Marin County, Calif.
:
: marinlib = local termtyp,-
: assign termtyp \v(terminal),-
: set terminal type vt100,-
: set telopt kermit refused refused,-
: telnet marinet.lib.ca.us,-
: set terminal type \m(termtyp),-
: set telopt kermit requested requested
:
: (the "set telopt kermit refused refused" is required because the server
: responds to "WILL kermit" and "DO kermit" with "WONT UNKNOWN" and "DONT
: UNKNOWN" and things deterioriate from there.)
Of course the first thing I did was to try to reproduce this problem by
trying it. The first time I connected to the host I saw the problem.
Then when I tried to produce it with a debug.log I couldn't. Nor could
I reproduce the problem anytime after that.
DNS Lookup... Trying 199.88.71.7... Reverse DNS Lookup... (OK)
TELNET SENT WILL AUTHENTICATION
TELNET SENT WILL NAWS
TELNET SENT WILL TERMINAL-TYPE
TELNET SENT WILL NEW-ENVIRONMENT
<wait for outstanding negotiations>
TELNET RCVD DO SUPPRESS-GO-AHEAD
TELNET SENT WILL SUPPRESS-GO-AHEAD
TELNET RCVD WILL SUPPRESS-GO-AHEAD
TELNET SENT DO SUPPRESS-GO-AHEAD
TELNET RCVD WILL ECHO
TELNET SENT DO ECHO
TELNET RCVD DO TERMINAL-TYPE
TELNET RCVD DO XDISPLOC
TELNET SENT WONT XDISPLOC
TELNET RCVD DO OLD-ENVIRON
TELNET SENT WONT OLD-ENVIRON
TELNET RCVD DO NAWS
TELNET RCVD DONT AUTHENTICATION
IAC SE
TELNET RCVD DONT NEW-ENVIRONMENT
<no outstanding negotiations>
TELNET SENT SB TERMINAL-TYPE IS VT320 IAC SE
TELNET SENT SB NAWS 80 4980 IAC SE
TELNET SENT DO KERMIT
TELNET SENT WILL KERMIT
<wait for outstanding negotiations>
TELNET RCVD DO SUPPRESS-GO-AHEAD
TELNET RCVD WILL SUPPRESS-GO-AHEAD
TELNET RCVD WILL ECHO
TELNET RCVD WONT KERMIT
TELNET RCVD DONT KERMIT
<no outstanding negotiations>
Welcome to MARINET, please login using "marinlib" to connect to the library.
login:
This seems like there may be a memory overwrite problem or an
uninitialized variable or two on the stack in this Telnet daemon.
: Note that I am only guessing that "set telopt kermit requested
: requested" the proper state to restore to.
It is. You could use SHOW TELOPT to see the current settings before
you make the change.
Jeffrey Altman * Sr.Software Designer
The Kermit Project * Columbia University
612 West 115th St * New York, NY * 10025 * USA
http://www.kermit-project.org/ * kermit-support@kermit-project.org